package org.mvn_spring_jsf_jar.util;

import java.util.Calendar;
import java.util.Date;

public class DateUtil {

	public static Date getEndHourDay(Date date) {
		Calendar calendar = Calendar.getInstance();
		calendar.setTime(date);
		calendar.add(Calendar.HOUR, 23);
		calendar.add(Calendar.MINUTE, 59);
		calendar.add(Calendar.SECOND, 59);

		return calendar.getTime();
	}
}
